home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / prg_casm / snpd9611.zip / SNIP_STR.H < prev    next >
C/C++ Source or Header  |  1996-11-24  |  2KB  |  60 lines

  1. .I 0 3
  2. /* +++Date last modified: 24-Nov-1996 */
  3.  
  4. /*
  5. .D 1 1
  6. .I 8 1
  7. #include <string.h>                       /* For strncpy() & memmove()  */
  8. .I 9 1
  9. #include "extkword.h"                     /* For FAR                    */
  10. .I 29 1
  11. #define strMove(d,s) memmove(d,s,strlen(s)+1)
  12. .D 30 1
  13. .I 34 3
  14. **
  15. **  Note: If compiling strictly conforming ANSI/ISO standard C code, the
  16. **        function names are modified to be compliant.
  17. .I 37 20
  18.  #define memmem   memMem
  19.  #define strchcat strChcat
  20.  #define strdel   strDel
  21.  #define strdelch strDelch
  22.  #define strdup   strDup
  23.  #define strecpy  strEcpy
  24.  #define stristr  strIstr
  25.  #define strrepl  strRepl
  26.  #define strrev   strRev
  27.  #define strrpbrk strRpbrk
  28.  #define strupr   strUpr
  29.  #define strlwr   strLwr
  30. #endif
  31.  
  32. #if defined(__cplusplus) && __cplusplus
  33.  extern "C" {
  34. #endif
  35.  
  36. void *memmem(const void *buf, const void *pattern,    /* Memmem.C       */
  37.       size_t buflen, size_t len);
  38. .D 38 8
  39. .I 50 3
  40. char *strchcat(char *string, int ch, size_t buflen);  /* Strchcat.C     */
  41. char *strdel(char *string, size_t first, size_t len); /* Strdel.C       */
  42. char *strdelch(char *string, const char *lose);       /* Strdelch.C     */
  43. .D 51 3
  44. .I 54 4
  45. char *strecpy(char *target, const char *src);         /* Strecpy.C/Asm  */
  46. char *stristr(const char *String,                     /* Stristr.C      */
  47.               const char *Pattern);
  48. char *strrepl(char *Str, size_t BufSiz,
  49. .D 55 3
  50. .I 73 9
  51. #if defined(MSDOS) || defined(__MSDOS__)
  52.  void FAR *fmemmem(const void FAR *buf,               /* Fmemmem.C      */
  53.        const void FAR *pattern, long buflen, long len);
  54. #endif
  55.  
  56. #if defined(__cplusplus) && __cplusplus
  57.  }
  58. #endif
  59.  
  60.